public class test01 {
    public static void main(String[] args) {
        //写一个冒泡排序
        int[] arr = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
        for (int i = 0; i < arr.length; i++) {
            for (int j = 0; j < arr.length - i - 1; j++) {
                if (arr[j] > arr[j + 1]) {
                    int temp = arr[j];
                    arr[j] = arr[j + 1];
                    arr[j + 1] = temp;
                }
            }
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
        //写一个快速排序
        int[] arr1 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
        int left = 0;
        int right = arr1.length - 1;
        int temp = 0;
        while (left < right) {
            int i = left;
            int j = right;
            int key = arr1[left];
            while (i < j) {
                while (i < j && arr1[j] >= key) {
                    j--;
                }
                arr1[i] = arr1[j];
                while (i < j && arr1[i] <= key) {
                    i++;
                }
                arr1[j] = arr1[i];
            }
            arr1[i] = key;
            left = i + 1;
            right = arr1.length - 1;
        }
        for (int i = 0; i < arr1.length; i++) {
            System.out.println(arr1[i]);
        }

    //写一个ssm项目
        //写一个springboot项目
        //写一个springcloud项
        //写一个springboot+springcloud项目
        //写一个Springboot+mybatis项目
        //写一个Springboot+mybatis+redis项目
        //写一个Springboot+mybatis+redis+rabbitmq项目
        //写一个Springboot+mybatis+redis+rabbitmq+dubbo项目
        //写一个Springboot+mybatis+redis+rabbitmq+dubbo+elasticsearch项目
        //写一个Springboot+mybatis+redis+rabbitmq+dubbo+elasticsearch+kafka项目
        //写一个Springboot+mybatis+redis+rabbitmq+dubbo+elasticsearch+kafka+zookeeper项目
        //写一个Springboot+mybatis+redis+rabbitmq+dubbo+elasticsearch+kafka+zookeeper+docker项目
        //写一个Springboot+mybatis+redis+rabbitmq+dubbo+elasticsearch+kafka+zookeeper+docker+jenkins项目
        //写一个Springboot+mybatis+redis+rabbitmq+dubbo+elasticsearch+kafka+zookeeper+docker+jenkins+gitlab项目
        //写一个Springboot+mybatis+redis+rabbitmq+dubbo+elasticsearch+kafka+zookeeper+docker+jenkins+gitlab+sonar项目
        //写一个Springboot+mybatis+redis+rabbitmq+dubbo+elasticsearch+kafka+zookeeper+docker+jenkins+gitlab+sonar+swagger项目
        //写一个Springboot+mybatis+redis+rabbitmq+dubbo+elasticsearch+kafka+zookeeper+docker+jenkins+gitlab+sonar+swagger+springsecurity项目
        //写一个Springboot+mybatis+redis+rabbitmq+dubbo+elasticsearch+kafka+zookeeper+docker+jenkins+gitlab+sonar+swagger+springsecurity+springcloud项目
        //写一个Springboot+mybatis+redis+rabbitmq+dubbo+elasticsearch+kafka+zookeeper+docker+jenkins+gitlab+sonar+swagger+springsecurity+springcloud+springbootadmin项目
        //写一个Springboot+mybatis+redis+rabbitmq+dubbo+elasticsearch+kafka+zookeeper+docker+jenkins+gitlab+sonar+swagger+springsecurity+springcloud+springbootadmin+springcloudalibaba项目
        //写一个Springboot+mybatis+redis+rabbitmq+dubbo+elasticsearch+kafka+zookeeper+docker+jenkins+gitlab+sonar+swagger+springsecurity+springcloud+springbootadmin+springcloudalibaba+springcloudalibaba
    //LCR 001. 两数相除
        int a = 10;
        int b = 3;
        int c = a / b;
        System.out.println(c);
        //写一个二叉树
        //写一个链表
        //写一个栈
        //写一个队列
        //写一个哈希表
        //写一个排序
        //写一个递归
        //写一个动态规划
        //二叉树
        //实现二叉树
        //写一个二叉树的中序遍历





    }
}
